import React,{ Component } from 'react';
import Time from '../../index/radar/time/time.jsx';
import './followCard/followCard.scss';
import { followUpList } from 'api/clinetDetails.js';
export default class FollowUp extends Component{
	constructor (props) {
		super(props)
		this.state={
			// followUp: props.location.state.followUp
		}
	}
	componentDidMount(){
		// followUpList({
		// 	employee_id: 1,
		// 	account_user_id: this.props.account_user_id
		// }).then(res => {
		// 	if(res.code === 1){
		// 		this.setState({
		// 			followUp: res.data
		// 		})
		// 	}
		// })
	}
	render(){
		return(
			<div>
			{
				this.props.followUp.map((item,index) => {
					return(
						<div key={index}>
							<Time time={item.create_at}/>
							<div className="followCard">
								<div className="card_title">
									{item.content}<span></span> 
								</div>
								<p className="card_jiao"></p>
								<img src={item.employee_img} className="card_img" alt="lalal"/>
							</div>
						</div>
					)
				})
			}
			</div>
		)
	}
}